<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<!DOCTYPE html>
<html>
  <head>
    <%@ include file="/WEB-INF/backstage/base.jsp" %>
    <title>SWIFT4J快速开发平台</title>
    
    <script type="text/javascript" src="<%=bp%>js/jscharts/jscharts_mb.js"></script>
  </head>
  
<body>
	<div style="text-align: right;"><a href="javascript:location.href=document.referrer;">返回</a></div>
	<h5>重症肌无力——	发病平均年龄趋势</h5>
	<div id="graph">Loading graph...</div>
	
<script type="text/javascript">
	var myData = new Array(${data});
	var myChart = new JSChart('graph', 'line');
	myChart.setDataArray(myData);
	myChart.setTitle(' ');
	myChart.setTitleColor('#8E8E8E');
	myChart.setTitleFontSize(11);
	myChart.setAxisNameX('年份');
	myChart.setAxisNameY('数量');
	myChart.setAxisColor('#8420CA');
	myChart.setAxisValuesColor('#949494');
	myChart.setAxisPaddingLeft(100);
	myChart.setAxisPaddingRight(120);
	myChart.setAxisPaddingTop(50);
	myChart.setAxisPaddingBottom(40);
	myChart.setAxisValuesDecimals(1);
	myChart.setShowXValues(false);
	myChart.setGridColor('#C5A2DE');
	myChart.setLineColor('#BBBBBB');
	myChart.setLineWidth(2);
	myChart.setFlagColor('#9D12FD');
	myChart.setFlagRadius(4);
	
	for(var i=0; i<myData.length; i++) {
		myChart.setLabelX([myData[i][0], myData[i][0]]);
		myChart.setTooltip([myData[i][0], myData[i][1]]);
	}
	
	myChart.draw();
</script>
</body>
</html>
